package org.lq.his.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.lq.his.dao.PrescribeDao;
import org.lq.his.pojo.Prescribe;
import org.lq.his.pojo.User;
import org.lq.his.service.prescribeService;
import org.springframework.stereotype.Service;

@Service("prescribe")
public class prescribeServiceImpl implements prescribeService {
	@Resource
	private PrescribeDao prescribeDao;

	public void setPrescribeDao(PrescribeDao prescribeDao) {
		this.prescribeDao = prescribeDao;
	}

	@Override
	public List<Prescribe> getListByCondition(int start, int limit, Prescribe condition, String column,
			String orderBy) {
		return prescribeDao.getListByCondition(start, limit, condition, column, orderBy);
	}

	@Override
	public int getCountByCondition(Prescribe condition) {
		return prescribeDao.getCountByCondition(condition);
	}

	@Override
	public void add(Prescribe prescribe) {
		prescribeDao.add(prescribe);
		
	}

	@Override
	public void update(Prescribe prescribe) {
		prescribeDao.update(prescribe);
	}


	@Override
	public void deletePre(Integer[] ids) {
		prescribeDao.deleteByIds(ids);
		
	}

	@Override
	public List<Prescribe> getAll() {
		
		return prescribeDao.getAll();
	}

	@Override
	public Prescribe getById(Integer id) {
		
		return prescribeDao.getById(id);
	}

	
}
